<?php
//$this->pageTitle=Yii::app()->name . ' - Contact Us';
//$this->breadcrumbs=array(
//	'Contact',
//);
//?>
<div class="form bootform">

    <?php $form = $this->beginWidget('CActiveForm', array(
    'id'=>'contact-form',
    'enableClientValidation'=>true,
    'clientOptions'=>array(
        'validateOnSubmit'=>true,
    ),
    'htmlOptions' => array(
        'class' => 'wufoo'
    )
)); ?>

    <header class="info" id="header">
        <h2>Contact Us</h2>

        <div class="alert-message block-message">
            If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.<br />
            Fields with <span class="required">*</span> are required.
        </div>
    </header>

    <?php echo $form->errorSummary($model); ?>

    <ul>
        <li>
            <?php echo $form->labelEx($model,'name', array('class'=>'desc')); ?>
            <div>
                <?php echo $form->textField($model, 'name', array('class'=>'field text medium')); ?>
            </div>
            <p id="instruct1" class="instruct">
                <small>This field is required.</small>
            </p>
            <span class="help-inline"><?php echo $form->error($model, 'name'); ?></span>
        </li>
        <li>
            <?php echo $form->labelEx($model,'email', array('class'=>'desc')); ?>
            <div>
                <?php echo $form->textField($model, 'email', array('class'=>'field text medium')); ?>
            </div>
            <p id="instruct1" class="instruct">
                <small>This field is required.</small>
            </p>
            <span class="help-inline"><?php echo $form->error($model, 'email'); ?></span>
        </li>
        <li>
            <?php echo $form->labelEx($model,'subject', array('class'=>'desc')); ?>
            <div>
                <?php echo $form->textField($model, 'subject', array('class'=>'field text medium','maxlength'=>128)); ?>
            </div>
            <p id="instruct1" class="instruct">
                <small>This field is required.</small>
            </p>
            <span class="help-inline"><?php echo $form->error($model, 'subject'); ?></span>
        </li>
        <li>
            <?php echo $form->labelEx($model,'body', array('class'=>'desc')); ?>
            <div>
                <?php echo $form->textArea($model, 'body', array('class'=>'field textarea medium','rows'=>6, 'cols'=>50)); ?>
            </div>
            <p id="instruct1" class="instruct">
                <small>This field is required.</small>
            </p>
            <span class="help-inline"><?php echo $form->error($model, 'body'); ?></span>
        </li>
        <?php if(CCaptcha::checkRequirements()): ?>
        <li>
            <?php echo $form->labelEx($model,'verifyCode', array('class'=>'desc')); ?>
            <div>
                <?php $this->widget('CCaptcha'); ?>
                <?php echo $form->textField($model,'verifyCode', array('class'=>'field text small')); ?>
            </div>
            <p id="instruct1" class="instruct">
                <small>Please enter the letters as they are shown in the image above.
                    <br/>Letters are not case-sensitive.</small>
            </p>
            <span class="help-inline"><?php echo $form->error($model, 'verifyCode'); ?></span>
        </li>
        <?php endif; ?>
        <li class="buttons action ">
            <div>
                <?php echo CHtml::submitButton('Submit', array('class'=>'btn primary')); ?>
            </div>
        </li>
    </ul>
    <?php $this->endWidget(); ?>
</div>
